import request from '@/utils/request'

// 查询会议记录列表
export function listMeeting(query) {
  return request({
    url: '/eamp/meeting/list',
    method: 'get',
    params: query
  })
}

// 查询会议记录详细
export function getMeeting(meetingId) {
  return request({
    url: '/eamp/meeting/' + meetingId,
    method: 'get'
  })
}

// 新增会议记录
export function addMeeting(data) {
  return request({
    url: '/eamp/meeting',
    method: 'post',
    data: data
  })
}

// 修改会议记录
export function updateMeeting(data) {
  return request({
    url: '/eamp/meeting',
    method: 'put',
    data: data
  })
}

// 删除会议记录
export function delMeeting(meetingId) {
  return request({
    url: '/eamp/meeting/' + meetingId,
    method: 'delete'
  })
}

// 查询部门下拉树结构
export function deptTreeSelect() {
  return request({
    url: '/system/user/deptTree',
    method: 'get'
  })
}
